<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <link href="/static/favicon.ico" rel="shortcut icon" th:href="@{/static/favicon.ico}"/>
    <title>注册教师</title>
    <!-- Bootstrap core CSS -->
    <link href="/asserts/css/bootstrap.min.css" th:href="@{../asserts/css/bootstrap.min.css}" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="/asserts/css/signin.css" th:href="@{../asserts/css/signin.css}" rel="stylesheet">
</head>

<body class="text-center">
<form class="form-signin" th:action="@{/registTea}" method="post" style="border: 2px solid #5b5280">
    <img class="mb-4" src="../static/asserts/img/bootstrap-solid.svg" alt="" width="72" height="72">
    <h1 class="h3 mb-3 font-weight-normal" th:text="注册"></h1>
    <p th:text="${error}" style="color: red" th:if="${not #strings.isEmpty(error)}"></p>
    <label class="sr-only">Username</label>
    <input type="text" class="form-control" name="name" th:placeholder="名字" required autofocus="">
    <label class="sr-only">Zh</label>
    <input type="text" class="form-control" name="zh" th:placeholder="帐号" required autofocus="">
    <label class="sr-only">Age</label>
    <input type="text" class="form-control" name="age" th:placeholder="年龄" required autofocus="">

    <div class="form-group" style="border: 1px solid gray">
        <label>性别：</label><br/>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="sex" th:value="1" checked>
            <label class="form-check-label">男</label>
        </div>
        <div class="form-check form-check-inline">
            <input class="form-check-input"   type="radio" name="sex" th:value="2"  >
            <label class="form-check-label">女</label>
        </div>
    </div>
    <label class="sr-only">Password</label>
    <input type="password" class="form-control" name="pwd" th:placeholder="密码" required>
    <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
</form>

</body>

</html>